Location
interface Location
Represents geographical location information.
This interface provides access to both postal address components (like street, city, country) and precise geographic coordinates (latitude, longitude). It may also include specific location identifiers like the National Weather Service (NWS) Zone ID.
Location
objects are typically associated with Device instances to specify their physical placement, or used to configure location-based services such as weather forecasts or targeted content.
See also
// Example of usage
Functions
Link copied to clipboard
Gets the first line of the street address.
Link copied to clipboard
Gets the second line of the street address.
Link copied to clipboard
Gets the country name or code.
Link copied to clipboard
Gets the geographic latitude of the location in decimal degrees.
Link copied to clipboard
Gets the geographic longitude of the location in decimal degrees.
Link copied to clipboard
Gets the National Weather Service (NWS) Zone ID for this location.
Link copied to clipboard
Gets the postal code or ZIP code.